import request from '@/utils/request'

// 查询健身馆列表
export function listGym(query) {
  return request({
    url: '/keep/gym/list',
    method: 'get',
    params: query
  })
}


// 查询健身馆详细
export function getGym(id) {
  return request({
    url: '/keep/gym/' + id,
    method: 'get'
  })
}

// 新增健身馆
export function addGym(data) {
  return request({
    url: '/keep/gym',
    method: 'post',
    data: data
  })
}

// 修改健身馆
export function updateGym(data) {
  return request({
    url: '/keep/gym',
    method: 'put',
    data: data
  })
}

// 删除健身馆
export function delGym(id) {
  return request({
    url: '/keep/gym/' + id,
    method: 'delete'
  })
}
